package io;

import java.io.File;
import java.io.FileInputStream;
import java.io.FileNotFoundException;
import java.io.IOException;
import java.nio.charset.StandardCharsets;

public class Test4 {
    public static void main(String[] args) throws IOException {
        File file=new File("./src/main/java/io/Test.java");
        FileInputStream fis=new FileInputStream(file);
        long len=file.length();
        byte[] a=new byte[(int )len];
        fis.read(a);
        String str=new String(a, StandardCharsets.UTF_8);
        System.out.println(str);
        fis.close();

    }
}
